]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: hide side controls when searching
authorTanner Doshier <doshitan@gmail.com>
Thu, 24 Jan 2013 21:34:06 +0000 (16:34 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 14 Feb 2013 23:18:22 +0000 (18:18 -0500)
Hide the elements when the search is active. Show them if the search
is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=682050

js/ui/overview.js

index 399bd191defcc4b7bb65d6167fa00e3f76a8b3fc..10deadae913f8ccbfd080faca760f85768eaa57f 100644 (file)
@@ -277,8 +277,15 @@ const Overview = new Lang.Class({
             return;
 
         let activePage = this._viewSelector.getActivePage();
+        let dashVisible = (activePage == ViewSelector.ViewPage.WINDOWS ||
+                           activePage == ViewSelector.ViewPage.APPS);
         let thumbnailsVisible = (activePage == ViewSelector.ViewPage.WINDOWS);
 
+        if (dashVisible)
+            this._dashSlider.slideIn();
+        else
+            this._dashSlider.slideOut();
+
         if (thumbnailsVisible)
             this._thumbnailsSlider.slideIn();
         else